package example4;

public  class Manager extends Employee {
    private int level;
    public Manager(String name,double salary,int level){
        super(name,salary);
        this.level = level;

    }



    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }


    public void updateName() {

    }

    @Override
    public double calculateSalary(double salary) {
        double s1 = salary*level*0.8;

        return s1;
    }
}
